package com.hnevc.mytrafficdemo.activity;

import android.graphics.Matrix;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.ImageView;

import com.hnevc.mytrafficdemo.R;

public class AntiTrafficMonitorSingleActivity extends AppCompatActivity
        implements View.OnTouchListener,ScaleGestureDetector.OnScaleGestureListener{
    private static final String TAG = "AntiTrafficMonitorSingl";
    ImageView mImageView ;
    Matrix oldMatrix;
    Matrix matrix;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_anti_traffic_monitor_single);
        mImageView = (ImageView) findViewById(R.id.id_iv_image);
        mImageView.setOnTouchListener(this);
        oldMatrix =mImageView.getMatrix();

    }

    public void btnBackClick(View view) {
        finish();
    }

    @Override
    public boolean onTouch(View view, MotionEvent motionEvent) {
    
        return false;
    }


    @Override
    public boolean onScale(ScaleGestureDetector scaleGestureDetector) {
        Log.e(TAG, "onScale: " );
        return false;
    }

    @Override
    public boolean onScaleBegin(ScaleGestureDetector scaleGestureDetector) {
        Log.e(TAG, "onScaleBegin: " );
        return false;
    }

    @Override
    public void onScaleEnd(ScaleGestureDetector scaleGestureDetector) {
        Log.e(TAG, "onScaleEnd: ");

    }
}
